package com.books.mapper.admin;

import com.books.model.entity.common.People;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * @Author 饿熊的咆哮
 * @Date 2021/10/3 16:39
 * @Version 1.0
 */
@Mapper
public interface UserMapper {
    @Select("select * from people where phone=#{phone} and if_admin=false")
    People findByPhone(String phone);

    @Select("select * from people where name=#{name} and if_admin=false")
    List<People> findByName(String name);
}
